<?php
// +----------------------------------------------------------------------
// | 有理想的地方，地狱都是天堂。
// +----------------------------------------------------------------------
// | Copyright @ df81.com 版权所有
// +----------------------------------------------------------------------
// | 作者: 南国老符 邮箱：1062129401@qq.com
// +----------------------------------------------------------------------

namespace app\admin\validate;
use think\Validate;

class Language extends Validate{
	protected $rule = [
		'viewtitle' => 'require|length:2,20',
		'admintitle' => 'require|length:2,20',
		'mulu' => 'require|alpha|length:2,20|unique:language',
		'sequence' => 'require|integer|length:1,10',
	];
	protected $message = [
		'viewtitle' => 'm_require_viewname',
		'admintitle' => 'm_require_adminname',
		'mulu' => 'y_mulu_only',
		'sequence' => 'c_require_sequence',
	];
}